package com.sais.manage.boot.platform.dto;
import com.sais.manage.boot.platform.entity.Menu;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * 菜单添加DTO
 *
 * @author zhang
 * @date 2019/11/28
 **/
@Data
@NoArgsConstructor
public class MenuSaveDTO {

    private String ukId;
    private String parentId;
    private String code;
    private String name;
    private String routing;
    private String type;
    private String icon;
    private Integer status;
    private Integer sort;

    private List<String> permissionIds;

    public Menu convert() {
        Menu menu = new Menu();
        BeanUtils.copyProperties(this, menu);
        return menu;
    }
}
